package com.ityuwen.mengyagushi.album.mapper;

import com.ityuwen.mengyagushi.model.album.TrackInfo;
import com.ityuwen.mengyagushi.query.album.TrackInfoQuery;
import com.ityuwen.mengyagushi.vo.album.AlbumTrackListVo;
import com.ityuwen.mengyagushi.vo.album.TrackListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface TrackInfoMapper extends BaseMapper<TrackInfo> {


    Page<TrackListVo> findUserTrackPage(Page<TrackListVo> trackListVoPage, @Param("query") TrackInfoQuery query);

    Page<AlbumTrackListVo> findAlbumTrackPage(Page<AlbumTrackListVo> page, @Param("albumId") Long albumId);
}
